<?php
/**
 * CreateTime: 2022/7/5 14:55
 */

namespace App\Http\Requests\Client;

use App\Http\Requests\BaseRequests;

class AddClientCreditAdjustAmountPost extends BaseRequests
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'credit_client_id' => "required",
            'adjust_amount_type' => "required",
            'adjust_amount_money' => "required",
        ];
    }

    public function messages()
    {
        return [
            'credit_client_id.required' => "信用客户ID不能为空",
            'adjust_amount_type.required' => "调额类型不能为空",
            'adjust_amount_money.required' => "调额不能为空"
        ];
    }
}